package com.zh.freechat.common.req;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;


@Data
public class PasswordUpdateForm implements Serializable {
    @NotBlank(message = "新密码不能为空")
    @Length(max = 50)
    private String password;
    @Length(max = 50)
    private String oldpassword;
}
